export default{
    namespaced: true,
    state: {
        goods:[],
        category:"",
      },
      mutations: {
        setGoodsList(state,goodslist){
          state.goods=goodslist;
        },
        
        setCategory(state,categoryname){
          state.category=categoryname;
        }
      },
      actions: {
         setgoods(context,goodslist){
           context.commit('setGoodsList',goodslist);
         }
      },
}